package com.uxhao.eduservice.mapper;

import com.uxhao.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.uxhao.eduservice.entity.adminVo.DayDataVo;
import com.uxhao.eduservice.entity.frontvo.CourseFrontInfoVo;
import com.uxhao.eduservice.entity.vo.CoursePublishVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author uxhao
 * @since 2022/01/11
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 获取课程发布信息
     * @param id 课程id
     * @return
     */
    CoursePublishVo selectCoursePublishVoById(String id);

    /**
     * 获取课程信息
     * @param courseId 课程id
     * @return
     */
    CourseFrontInfoVo selectInfoWebById(String courseId);


    List<DayDataVo> countLastWeekCourse();

    List<DayDataVo> countCurrentWeekCourse();
}
